#define _CRT_SECURE_NO_WARNINGS

#include"SeqList.h"

void TestSeqList()
{
	SL s;
	SeqInit(&s);

	SeqPushBack(&s, 1);
	SeqPushBack(&s, 2);
	SeqPushBack(&s, 3);
	SeqPushBack(&s, 4);
	SeqPushBack(&s, 5);
	SeqPrint(&s);

	
	/*SeqPopBack(&s);
	SeqPrint(&s); 
	SeqPopBack(&s);
	SeqPrint(&s); 
	SeqPopBack(&s);
	SeqPrint(&s);
	SeqPopBack(&s);
	SeqPrint(&s);
	SeqPopBack(&s);
	SeqPrint(&s);*/
	/*SeqPopBack(&s);
	SeqPrint(&s);
	SeqPopBack(&s);
	SeqPrint(&s);*/


	SeqPushFront(&s, 1);
	SeqPushFront(&s, 2);
	SeqPushFront(&s, 3);
	SeqPushFront(&s, 4);
	SeqPushFront(&s, 5);
	SeqPrint(&s);

	SeqPopFront(&s);
	SeqPopFront(&s);
	SeqPopFront(&s);
	SeqPopFront(&s);
	SeqPopFront(&s);
	SeqPrint(&s);


	SeqInsert(&s, 0, 19);
	SeqPrint(&s);

	SeqInsert(&s, 5, 19);
	SeqPrint(&s);


	SeqErease(&s, 3);
	SeqPrint(&s);




	SeqDestroy(&s);
}





int main()
{
	TestSeqList();
	return 0;
}